import request from '@/utils/request'

export function listMiniProfile(query) {
  return request({
    url: '/system/miniProfile/list',
    method: 'get',
    params: query
  })
}

export function getMiniProfile(profileId) {
  return request({
    url: `/system/miniProfile/${profileId}`,
    method: 'get'
  })
}

export function updateMiniProfile(data) {
  return request({
    url: '/system/miniProfile',
    method: 'put',
    data
  })
}

export function delMiniProfile(profileId) {
  return request({
    url: '/system/miniProfile/' + profileId,
    method: 'delete'
  })
}
